Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script src= "../../ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script> </head> <body> <div ng-app="" ng-controller="customersController"> <ul> <li ng-repeat="x in names"> {{ x.Name + ', ' + x.Country }} </li> </ul> </div> <script> function customersController($scope,$http) { $http.get("../website/Customers_JSON.html") .success(function(response) {$scope.names = response;}); } </script> </body> <!-- Mirrored from www.w3schools.com/angular/tryit.asp?filename=try_ng_customers_json by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:30:44 GMT --> </html>
Result:
Try it Yourself - © w3schools.com